import http from './http'

// 获取所有山体经纬度

const getAllLocation = () => {
    return http.post(
        'api/mountain/getAllLocation'
    )
}

// 根据山名进行搜索
const searchMountain = (keywords) => {
    return http.post(
        'api/mountain/searchMountain',
        {keywords}
    )
}

// 根据经纬度获取山体详情信息
const getDetail = (longitude, latitude) => {
    return http.post(
        'api/mountain/getDetail',
        {longitude, latitude}
    )
}

export {
    getAllLocation,
    searchMountain,
    getDetail
}